Skip to content

查询个人收款方授权结果

查询个人收款方授权结果,以下情况需要调用:1. 个人卖家开通授权收款;2. 交易下单前,需要individual_auth_id

请求参数类型描述
openidstring个人收款方在平台appid下的唯一标识
queryobject声明请求的查询参数
appidstring签约和付款的微信小程序AppID
permission_typestring权限类型
INDIVIDUAL_PAYEE 枚举值
php
$instance->v3->ecommerce->individualContracts->_openid_->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/individual-contracts/{openid}')->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/individual-contracts/{openid}']->getAsync([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->individualContracts->_openid_->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/individual-contracts/{openid}')->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/individual-contracts/{openid}']->get([
  'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
  'query' => [
    'appid'           => 'wxd678efh567h23787',
    'permission_type' => 'INDIVIDUAL_PAYEE',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
individual_auth_idstring授权ID
operation_timestring操作时间
auth_statestring授权状态
AUTHORIZED | UNAUTHORIZED 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory